package ar.com.larreta.grilla.client;

import java.util.List;

import com.extjs.gxt.ui.client.data.ListLoader;
import com.extjs.gxt.ui.client.data.ModelData;

public class ListStore<M extends ModelData> extends com.extjs.gxt.ui.client.store.ListStore<M> {

	public ListStore() {
		super();
	}

	public ListStore(ListLoader loader) {
		super(loader);
	}

	/**
	 * Impide insertar elementos repetidos
	 */
	protected void insert(List<? extends M> items, int index, boolean supressEvent){
		items.removeAll(all);
		super.insert(items, index, supressEvent);
	}
	
}
